<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('list_7');
block_get('505,503,506,504');?><?php include template('common/header'); $list = array();?><?php $wheresql = category_get_wheresql($cat);?><?php $list = category_get_list($cat, $wheresql, $page);?><?php $cache_menus=$_G['cache']['portalcategory'];
 if(array_key_exists("ups",$cat)){
$cptitle=array_values($cat['ups'])[0]['catname'];
$cptitleb=array_values($cat['ups'])[0]['fullfoldername'];
    if($cat['level']>1){
        $children =$cat['ups'][$cat['topid']]['children'];
        $arrmenu=array();
        foreach($children as $v){
            $arrmenu[]=$cache_menus[$v];
        }
    }else{
        $arrmenu=$cat['others'];
    }
 }else{
 $cptitle=$cat['catname'];
  $cptitleb=$cat['fullfoldername'];	
  $arrmenu=$cat['subs'];
      
 }

foreach($arrmenu as $k=>$v){
if($v['children']){
$sanji=array();
foreach($v['children'] as $vv){
    $sanji[]=$cache_menus[$vv];
    
}
$arrmenu[$k]['sanji']=$sanji;
}
}?><div class="wpui_nbanner banner_news">
    <div class="wpui_wrapper wpui_nbannerprr">
        <h1><i></i>
            <a href="./" title="首页"><?php echo $_G['setting']['bbname'];?></a><em>/</em><a href="<?php echo $_G['setting']['navs'][1]['filename'];?>"><?php echo $_G['setting']['navs'][1]['navname'];?></a><em>/</em><?php if(isset($cat['ups']) && is_array($cat['ups'])) foreach($cat['ups'] as $value) { ?><a href="<?php echo getportalcategoryurl($value['catid']); ?>"><?php echo $value['catname'];?></a><em>/</em><?php } ?><span><?php echo $cat['catname'];?></span>
        </h1>
        <h2><?php echo $cat['catname'];?></h2>
        <?php if(($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])) { ?>
        <span class="wpui_fabiaobtn"><a href="portal.php?mod=portalcp&amp;ac=article&amp;catid=<?php echo $cat['catid'];?>">+ <?php echo $lang['wpui_fabu'];?></a></span>
        <?php } ?>
    </div>
</div>
<div class="wpui_content bgf9">
    <div class="wpui_wrapper">
        <ul class="wpui_nmenu">
            <li><a <?php if($cat['topid']==$catid) { ?>class="on"<?php } ?> href="<?php echo $cat['ups'][$cat['topid']]['caturl'];?>"><?php echo $lang['wpui_quanbu'];?></a></li>
            <?php if(isset($arrmenu) && is_array($arrmenu)) foreach($arrmenu as $key => $val) { ?>            <li>
                <a <?php if($val['catid']==$catid) { ?>class="on"<?php } ?> href="<?php echo $val['caturl'];?>"><?php echo $val['catname'];?></a>
                <?php if($val['sanji']) { ?>
                <div class="wpui_nmenubox">
                    <?php if(isset($val['sanji']) && is_array($val['sanji'])) foreach($val['sanji'] as $val2) { ?>                    <a <?php if($val2['catid']==$catid) { ?>class="on"<?php } ?> href="<?php echo $val2['caturl'];?>"><?php echo $val2['catname'];?></a>
                    <?php } ?>
                </div>
                <?php } ?>
            </li>
            <?php } ?>
        </ul>
    </div>
</div>
<div class="wpui_content ovh">
    <div class="wpui_wrapper">
        <div class="wpui_news mgb30">
            <div class="wpui_news_fl">
                <div class="wpui_news_list">
                    <?php if(isset($list['list']) && is_array($list['list'])) foreach($list['list'] as $key => $val) { ?>                    <?php $url = fetch_article_url($val);?>                    <?php if($val['pic']) { ?>
                    <dl class="wow fadeInUp">
                    <a href="<?php echo $url;?>">
                        <dt><img src="<?php echo $val['pic'];?>"></dt>
                        <dd>
                            <h2><span><?php echo $val['title'];?></span></h2>
                            <p><?php echo $val['summary'];?></p>
                            <h3><?php echo $val['dateline'];?></h3>
                        </dd>                        
                    </a>
                    </dl>
                    <?php } else { ?>
                    <dl class="wow fadeInUp no">
                    <a href="<?php echo $url;?>">
                        <dd>
                            <h2><span><?php echo $val['title'];?></span></h2>
                            <p><?php echo $val['summary'];?></p>
                            <h3><?php echo $val['dateline'];?></h3>
                        </dd>                        
                    </a>
                    </dl>
                    <?php } ?>
                    <?php } ?>
                </div>
                <div class="page"><?php echo $list['multi'];?></div>
            </div>
            <div class="wpui_news_fr">
                <div class="wpui_news_frbox">                
                    <!--[diy=wpui_hotnews]--><div id="wpui_hotnews" class="area"><div id="framepgbVMp" class="frame move-span cl frame-1"><div id="framepgbVMp_left" class="column frame-1-c"><div id="framepgbVMp_left_temp" class="move-span temp"></div><?php block_display('505');?><?php block_display('503');?></div></div></div><!--[/diy]-->
                </div>
                <div class="wpui_news_frbox">
                    <!--[diy=wpui_newnews]--><div id="wpui_newnews" class="area"><div id="framet24l1q" class="frame move-span cl frame-1"><div id="framet24l1q_left" class="column frame-1-c"><div id="framet24l1q_left_temp" class="move-span temp"></div><?php block_display('506');?><?php block_display('504');?></div></div></div><!--[/diy]-->
                </div>                
            </div>
        </div>
    </div>
</div>
    		  	  		  	  		     	  		      		   		     		       	  	 	     		   		     		       	  				    		   		     		       	  	 	     		   		     		       	  				    		   		     		       	  		 	    		   		     		       	  	 		    		 	      	  		  	  		     <?php include template('common/footer'); ?>